package com.pearadmin.encode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.util.List;

@Data
@Alias("GenTable")
@TableName("gen_table")
public class GenTable {

    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;
    @TableField("name")
    private String name;
    @TableField("comment")
    private String comment;
    @TableField("class_name")
    private String className;
    @TableField("package_name")
    private String packageName;
    @TableField("module_name")
    private String moduleName;
    @TableField("business_name")
    private String businessName;
    @TableField("function_name")
    private String functionName;
    @TableField("author")
    private String author;
    @TableField(exist = false)
    private GenColumn pkColumn;
    @TableField(exist = false)
    private List<GenColumn> columns;
    @TableField(exist = false)
    private String engine;
    @TableField(exist = false)
    private String createTime;
}
